package pl.bizuteria.sklep.admin.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class ZakladkiView extends Composite {

	private static ZakladkiViewUiBinder uiBinder = GWT
			.create(ZakladkiViewUiBinder.class);

	interface ZakladkiViewUiBinder extends UiBinder<Widget, ZakladkiView> {
	}

@Inject
	public ZakladkiView(PlaceController controller) {
		this.controller = controller;
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	
PlaceController controller;
	
	@UiField
	Button testButton;

	@UiHandler("testButton")
	public void testButtonClicked(ClickEvent clickEvent){
		Window.alert("testButton - nic nie robi ");
	}
	
}
